package day03;

public class IfElseDemo {
    public static void main(String[] args) {
        double price=600.0;
        if(price>500){
            price*=0.6;
        }
        else{
            price*=0.7;
        }
        System.out.println("结算金额："+price);

        int score=78;
        if(score>=70&&score<=100){
            System.out.println("passing grade："+score);
        }
        else{
            System.out.println("failing grade："+score);
        }
        boolean flag=30>67;
        if(flag == true){
            System.out.println(flag);
        }
        else {
           System.out.println(flag);
        }

        int a=78,b=98;
        int c=a>b?a:b;
        if(c>a&&c>b){
            System.out.println("max:"+c);
        }
        else{System.out.println("false");}

    }
}
